﻿using System;
using System.Data;

public class RegisterBO
{
        private string _accountId;
		private string _userName;
		private string _password;
		private DateTime _createdDate;


        public string AccountId
        {
            get { return _accountId; }
            set { _accountId = value; }
        }
        
        public string Password
        {
            get { return _password; }
            set { _password = value; }
        }

        public string UserName
        {
            get { return _userName; }
            set { _userName = value; }
        }
       
        public DateTime CreatedDate
        {
            get { return _createdDate; }
            set { _createdDate = value; }
        }

	   RegisterDAL _RegisterDal = new RegisterDAL();

	   public int InsertRegistration()
	   {

		   try
			   {

			   return _RegisterDal.CreateAccount(this);

			   }
		   catch (Exception ex)
			   {
			   throw ex;
			   }
		   
		   }

	   public DataTable AccFillDropDown()
	   {


		   try
		   {
			   return _RegisterDal.AccountFillDropDown();
		   }

		   catch
		   {
				 throw;
           }

	    }
  
    }

